package models

import (
	"time"
)

// ProductImage undefined
type ProductImage struct {
	ID        int64     `json:"id" gorm:"id"`
	ProductId int64     `json:"product_id" gorm:"product_id"`
	Src       string    `json:"src" gorm:"src"`
	CreatedAt time.Time `json:"created_at" gorm:"created_at"`
	UpdatedAt time.Time `json:"updated_at" gorm:"updated_at"`
}

// TableName 表名称
func (*ProductImage) TableName() string {
	return "dg_product_image"
}
